package com.lh.common.entity.admin;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lh.common.enums.ReasonEnum;
import com.lh.common.enums.UpperLowerShelfStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
/**
 * ovmal_reason:退款/售后原因表
 * @author Administrator 2020-05-09
 */
@TableName("ovmal_reason")
@Alias("reason")
@Data
public class Reason implements Serializable {
    @ApiModelProperty(value = "")
    @Id
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "类容",allowEmptyValue=true,required = true)
    @Column(name = "content")
    private String content;

    @ApiModelProperty(value = "状态 UPPERSHELF:上架; LOWERSHELF：下架")
    @Column(name = "status")
    private UpperLowerShelfStatus status;

    @ApiModelProperty(value = "类型 REFUND:申请退款原因; AFTERSALES：申请售后原因; REFUSEREFUND：拒绝退款原因; WAREHOUS：拒绝入库原因",allowEmptyValue=true,required = true)
    @Column(name = "type")
    private ReasonEnum type;

    @ApiModelProperty(value = "")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "")
    @Column(name = "update_time")
    private Date updateTime;

    /**
     * ovmal_reason
     */
    private static final long serialVersionUID = 1L;
}
